package com.esun.payment_api.service;

import com.esun.payment_api.domain.SysCustomer;
import com.esun.payment_api.domain.SysDictCustomer;
import com.esun.payment_api.domain.SysDictData;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface SysDictCustomerService {
    //查询全部，条件查询
    List<SysDictCustomer> selectByExample(Short coId, String keyword, String word);
    //单条插入
    int insertSelective(SysDictCustomer record);
    //根据id删除单个(软删)
    int deleteById(Short id);
    //根据id修改单个
    int updateByPrimaryKeySelective(SysDictCustomer record);
    //用户添加往来单位
    int insertSysCustomerSelective(SysCustomer record);

    List<SysCustomer> getSysCustomerByName(String name);
    List<SysCustomer> getSysCustomerByCode(String code);
    List<SysCustomer> getSysCustomerByItin(String itin);

    //获取往来单位字典
    List<SysDictData> getCustomerTypeDict(Short companyId);

}
